
#include "SQLType.h"

SQLType_ptr SQLType::SELECT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 0, make_string_ptr("SELECT")));
SQLType_ptr SQLType::UPDATE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 1, make_string_ptr("UPDATE")));
SQLType_ptr SQLType::INSERT_SELECT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 2, make_string_ptr("INSERT_SELECT")));
SQLType_ptr SQLType::INSERT_INTO_SELECT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 3, make_string_ptr("INSERT_INTO_SELECT")));
SQLType_ptr SQLType::INSERT_OVERWRITE_SELECT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 4, make_string_ptr("INSERT_OVERWRITE_SELECT")));
SQLType_ptr SQLType::INSERT_VALUES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 5, make_string_ptr("INSERT_VALUES")));
SQLType_ptr SQLType::INSERT_INTO_VALUES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 6, make_string_ptr("INSERT_INTO_VALUES")));
SQLType_ptr SQLType::INSERT_OVERWRITE_VALUES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 7, make_string_ptr("INSERT_OVERWRITE_VALUES")));
SQLType_ptr SQLType::INSERT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 8, make_string_ptr("INSERT")));
SQLType_ptr SQLType::INSERT_INTO = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 9, make_string_ptr("INSERT_INTO")));
SQLType_ptr SQLType::INSERT_OVERWRITE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 10, make_string_ptr("INSERT_OVERWRITE")));
SQLType_ptr SQLType::INSERT_MULTI = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 11, make_string_ptr("INSERT_MULTI")));
SQLType_ptr SQLType::DELETE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 12, make_string_ptr("DELETE")));
SQLType_ptr SQLType::MERGE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 13, make_string_ptr("MERGE")));
SQLType_ptr SQLType::CREATE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 14, make_string_ptr("CREATE")));
SQLType_ptr SQLType::ALTER = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 15, make_string_ptr("ALTER")));
SQLType_ptr SQLType::DROP = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 16, make_string_ptr("DROP")));
SQLType_ptr SQLType::TRUNCATE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 17, make_string_ptr("TRUNCATE")));
SQLType_ptr SQLType::REPLACE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 18, make_string_ptr("REPLACE")));
SQLType_ptr SQLType::ANALYZE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 19, make_string_ptr("ANALYZE")));
SQLType_ptr SQLType::EXPLAIN = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 20, make_string_ptr("EXPLAIN")));
SQLType_ptr SQLType::SHOW = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 21, make_string_ptr("SHOW")));
SQLType_ptr SQLType::SHOW_TABLES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 22, make_string_ptr("SHOW_TABLES")));
SQLType_ptr SQLType::SHOW_USERS = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 23, make_string_ptr("SHOW_USERS")));
SQLType_ptr SQLType::SHOW_PARTITIONS = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 24, make_string_ptr("SHOW_PARTITIONS")));
SQLType_ptr SQLType::SHOW_CATALOGS = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 25, make_string_ptr("SHOW_CATALOGS")));
SQLType_ptr SQLType::SHOW_FUNCTIONS = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 26, make_string_ptr("SHOW_FUNCTIONS")));
SQLType_ptr SQLType::SHOW_ROLE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 27, make_string_ptr("SHOW_ROLE")));
SQLType_ptr SQLType::SHOW_ROLES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 28, make_string_ptr("SHOW_ROLES")));
SQLType_ptr SQLType::SHOW_PACKAGE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 29, make_string_ptr("SHOW_PACKAGE")));
SQLType_ptr SQLType::SHOW_PACKAGES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 30, make_string_ptr("SHOW_PACKAGES")));
SQLType_ptr SQLType::SHOW_CHANGELOGS = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 31, make_string_ptr("SHOW_CHANGELOGS")));
SQLType_ptr SQLType::SHOW_ACL = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 32, make_string_ptr("SHOW_ACL")));
SQLType_ptr SQLType::SHOW_RECYCLEBIN = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 33, make_string_ptr("SHOW_RECYCLEBIN")));
SQLType_ptr SQLType::SHOW_VARIABLES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 34, make_string_ptr("SHOW_VARIABLES")));
SQLType_ptr SQLType::SHOW_HISTORY = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 35, make_string_ptr("SHOW_HISTORY")));
SQLType_ptr SQLType::SHOW_GRANT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 36, make_string_ptr("SHOW_GRANT")));
SQLType_ptr SQLType::SHOW_GRANTS = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 37, make_string_ptr("SHOW_GRANTS")));
SQLType_ptr SQLType::SHOW_CREATE_TABLE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 38, make_string_ptr("SHOW_CREATE_TABLE")));
SQLType_ptr SQLType::SHOW_STATISTIC = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 39, make_string_ptr("SHOW_STATISTIC")));
SQLType_ptr SQLType::SHOW_STATISTIC_LIST = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 40, make_string_ptr("SHOW_STATISTIC_LIST")));
SQLType_ptr SQLType::SHOW_LABEL = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 41, make_string_ptr("SHOW_LABEL")));
SQLType_ptr SQLType::DESC = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 42, make_string_ptr("DESC")));
SQLType_ptr SQLType::SET = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 43, make_string_ptr("SET")));
SQLType_ptr SQLType::SET_PROJECT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 44, make_string_ptr("SET_PROJECT")));
SQLType_ptr SQLType::SET_LABEL = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 45, make_string_ptr("SET_LABEL")));
SQLType_ptr SQLType::DUMP_DATA = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 46, make_string_ptr("DUMP_DATA")));
SQLType_ptr SQLType::LIST = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 47, make_string_ptr("LIST")));
SQLType_ptr SQLType::LIST_USERS = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 48, make_string_ptr("LIST_USERS")));
SQLType_ptr SQLType::LIST_TABLES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 49, make_string_ptr("LIST_TABLES")));
SQLType_ptr SQLType::LIST_ROLES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 50, make_string_ptr("LIST_ROLES")));
SQLType_ptr SQLType::LIST_TENANT_ROLES = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 51, make_string_ptr("LIST_TENANT_ROLES")));
SQLType_ptr SQLType::LIST_TRUSTEDPROJECTS = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 52, make_string_ptr("LIST_TRUSTEDPROJECTS")));
SQLType_ptr SQLType::LIST_ACCOUNTPROVIDERS = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 53, make_string_ptr("LIST_ACCOUNTPROVIDERS")));
SQLType_ptr SQLType::LIST_TEMPORARY_OUTPUT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 54, make_string_ptr("LIST_TEMPORARY_OUTPUT")));
SQLType_ptr SQLType::WHO = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 55, make_string_ptr("WHO")));
SQLType_ptr SQLType::GRANT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 56, make_string_ptr("GRANT")));
SQLType_ptr SQLType::REVOKE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 57, make_string_ptr("REVOKE")));
SQLType_ptr SQLType::COMMIT = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 58, make_string_ptr("COMMIT")));
SQLType_ptr SQLType::ROLLBACK = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 59, make_string_ptr("ROLLBACK")));
SQLType_ptr SQLType::USE = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 60, make_string_ptr("USE")));
SQLType_ptr SQLType::KILL = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 61, make_string_ptr("KILL")));
SQLType_ptr SQLType::MSCK = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 62, make_string_ptr("MSCK")));
SQLType_ptr SQLType::ADD_USER = SQLType_ptr(new SQLType(1ULL << 0, 1ULL << 63, make_string_ptr("ADD_USER")));
SQLType_ptr SQLType::REMOVE_USER = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 0, make_string_ptr("REMOVE_USER")));
SQLType_ptr SQLType::REMOVE_RESOURCE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 2, make_string_ptr("REMOVE_RESOURCE")));
SQLType_ptr SQLType::CREATE_USER = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 3, make_string_ptr("CREATE_USER")));
SQLType_ptr SQLType::CREATE_TABLE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 4, make_string_ptr("CREATE_TABLE")));
SQLType_ptr SQLType::CREATE_TABLE_AS_SELECT = SQLType_ptr(new SQLType(1ULL << 1, 1ULL <<5, make_string_ptr("CREATE_TABLE_AS_SELECT")));
SQLType_ptr SQLType::CREATE_VIEW = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 6, make_string_ptr("CREATE_VIEW")));
SQLType_ptr SQLType::CREATE_FUNCTION = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 7, make_string_ptr("CREATE_FUNCTION")));
SQLType_ptr SQLType::CREATE_ROLE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 8, make_string_ptr("CREATE_ROLE")));
SQLType_ptr SQLType::CREATE_PACKAGE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 9, make_string_ptr("CREATE_PACKAGE")));
SQLType_ptr SQLType::DROP_USER = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 10, make_string_ptr("DROP_USER")));
SQLType_ptr SQLType::DROP_TABLE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 11, make_string_ptr("DROP_TABLE")));
SQLType_ptr SQLType::DROP_VIEW = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 12, make_string_ptr("DROP_VIEW")));
SQLType_ptr SQLType::DROP_MATERIALIZED_VIEW = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 13, make_string_ptr("DROP_MATERIALIZED_VIEW")));
SQLType_ptr SQLType::DROP_FUNCTION = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 14, make_string_ptr("DROP_FUNCTION")));
SQLType_ptr SQLType::DROP_ROLE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 15, make_string_ptr("DROP_ROLE")));
SQLType_ptr SQLType::DROP_RESOURCE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 16, make_string_ptr("DROP_RESOURCE")));
SQLType_ptr SQLType::ALTER_USER = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 17, make_string_ptr("ALTER_USER")));
SQLType_ptr SQLType::ALTER_TABLE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 18, make_string_ptr("ALTER_TABLE")));
SQLType_ptr SQLType::ALTER_VIEW = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 19, make_string_ptr("ALTER_VIEW")));
SQLType_ptr SQLType::READ = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 20, make_string_ptr("READ")));
SQLType_ptr SQLType::ADD_TABLE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 21, make_string_ptr("ADD_TABLE")));
SQLType_ptr SQLType::ADD_FUNCTION = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 22, make_string_ptr("ADD_FUNCTION")));
SQLType_ptr SQLType::ADD_RESOURCE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 23, make_string_ptr("ADD_RESOURCE")));
SQLType_ptr SQLType::ADD_TRUSTEDPROJECT = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 24, make_string_ptr("ADD_TRUSTEDPROJECT")));
SQLType_ptr SQLType::ADD_VOLUME = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 25, make_string_ptr("ADD_VOLUME")));
SQLType_ptr SQLType::ADD_STATISTIC = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 26, make_string_ptr("ADD_STATISTIC")));
SQLType_ptr SQLType::ADD_ACCOUNTPROVIDER = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 27, make_string_ptr("ADD_ACCOUNTPROVIDER")));
SQLType_ptr SQLType::TUNNEL_DOWNLOAD = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 28, make_string_ptr("TUNNEL_DOWNLOAD")));
SQLType_ptr SQLType::UPLOAD = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 29, make_string_ptr("UPLOAD")));
SQLType_ptr SQLType::WHOAMI = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 30, make_string_ptr("WHOAMI")));
SQLType_ptr SQLType::SCRIPT = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 31, make_string_ptr("SCRIPT")));
SQLType_ptr SQLType::COUNT = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 32, make_string_ptr("COUNT")));
SQLType_ptr SQLType::ADD = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 33, make_string_ptr("ADD")));
SQLType_ptr SQLType::CLONE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 34, make_string_ptr("CLONE")));
SQLType_ptr SQLType::LOAD = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 35, make_string_ptr("LOAD")));
SQLType_ptr SQLType::INSTALL = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 36, make_string_ptr("INSTALL")));
SQLType_ptr SQLType::UNLOAD = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 37, make_string_ptr("UNLOAD")));
SQLType_ptr SQLType::ALLOW = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 38, make_string_ptr("ALLOW")));
SQLType_ptr SQLType::PURGE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 39, make_string_ptr("PURGE")));
SQLType_ptr SQLType::RESTORE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 40, make_string_ptr("RESTORE")));
SQLType_ptr SQLType::EXSTORE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 41, make_string_ptr("EXSTORE")));
SQLType_ptr SQLType::UNDO = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 42, make_string_ptr("UNDO")));
SQLType_ptr SQLType::REMOVE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 43, make_string_ptr("REMOVE")));
SQLType_ptr SQLType::EMPTY = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 44, make_string_ptr("EMPTY")));
SQLType_ptr SQLType::ALTER_TABLE_ADD_PARTITION = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 45, make_string_ptr("ALTER_TABLE_ADD_PARTITION")));
SQLType_ptr SQLType::ALTER_TABLE_MERGE_PARTITION = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 46, make_string_ptr("ALTER_TABLE_MERGE_PARTITION")));
SQLType_ptr SQLType::ALTER_TABLE_DROP_PARTITION = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 47, make_string_ptr("ALTER_TABLE_DROP_PARTITION")));
SQLType_ptr SQLType::ALTER_TABLE_RENAME_PARTITION = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 48, make_string_ptr("ALTER_TABLE_RENAME_PARTITION")));
SQLType_ptr SQLType::ALTER_TABLE_SET_LIFECYCLE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 49, make_string_ptr("ALTER_TABLE_SET_LIFECYCLE")));
SQLType_ptr SQLType::ALTER_TABLE_ENABLE_LIFECYCLE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 50, make_string_ptr("ALTER_TABLE_ENABLE_LIFECYCLE")));
SQLType_ptr SQLType::ALTER_TABLE_DISABLE_LIFECYCLE = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 51, make_string_ptr("ALTER_TABLE_DISABLE_LIFECYCLE")));
SQLType_ptr SQLType::ALTER_TABLE_RENAME = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 52, make_string_ptr("ALTER_TABLE_RENAME")));
SQLType_ptr SQLType::ALTER_TABLE_ADD_COLUMN = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 53, make_string_ptr("ALTER_TABLE_ADD_COLUMN")));
SQLType_ptr SQLType::ALTER_TABLE_RENAME_COLUMN = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 54, make_string_ptr("ALTER_TABLE_RENAME_COLUMN")));
SQLType_ptr SQLType::ALTER_TABLE_ALTER_COLUMN = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 55, make_string_ptr("ALTER_TABLE_ALTER_COLUMN")));
SQLType_ptr SQLType::ALTER_TABLE_SET_TBLPROPERTIES = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 56, make_string_ptr("ALTER_TABLE_SET_TBLPROPERTIES")));
SQLType_ptr SQLType::ALTER_TABLE_SET_COMMENT = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 57, make_string_ptr("ALTER_TABLE_SET_COMMENT")));
SQLType_ptr SQLType::ALTER_TABLE_TOUCH = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 58, make_string_ptr("ALTER_TABLE_TOUCH")));
SQLType_ptr SQLType::ALTER_TABLE_CHANGE_OWNER = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 59, make_string_ptr("ALTER_TABLE_CHANGE_OWNER")));
SQLType_ptr SQLType::MULTI = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 60, make_string_ptr("MULTI")));
SQLType_ptr SQLType::WITH = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 61, make_string_ptr("WITH")));
SQLType_ptr SQLType::SET_UNKNOWN = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 62, make_string_ptr("SET_UNKNOWN")));
SQLType_ptr SQLType::UNKNOWN = SQLType_ptr(new SQLType(1ULL << 1, 1ULL << 63, make_string_ptr("UNKNOWN")));
SQLType_ptr SQLType::ERROR = SQLType_ptr(new SQLType(1ULL << 2, 1ULL << 0, make_string_ptr("ERROR")));

SQLType::SQLType(uint64_t mask0, uint64_t mask1, string_ptr name)
{
  this->mask0 = mask0;
  this->mask1 = mask1;
  this->name = name;
}
